Schema = mongoose.Schema;

var restMongoSchema = new Schema({
    displayOrder: Number,
    domain: {type: String, enum: ['user', 'community', 'question', 'masterData', 'systems', 'activity']},
    httpMethod: {type: String, enum: ['GET', 'DELETE', 'PUT', 'POST']},
    restURL: String,
    functionDesc: String,
    comments: String,
    reqMessageSample: String,
    resMessageSample: String,
    dateCreated: {type: Date, default: Date.now},
    dateLastModified: {type: Date, default: Date.now}
});
mongoose.model('backoffice_rests', restMongoSchema,'backoffice_rests');
